import { request } from '@/utils';

/**
 * 业务系统登录
 * @param {*} data
 * username
 */
export function sysLogin(data) {
  // return request({
  //   url: '/login',
  //   method: 'get',
  // });
  return request({
    url: '/oauth/token',
    method: 'post-x-www-form-urlencoded',
    showLoading: false,
    data: {
      client_id: 'linkwe',
      client_secret: 'linkwe',
      grant_type: 'business_in',
      scope: 'linkwe',
      openId: 'o_3YxwijuANgnjiL68vTa4-L9W2Q',
      agentId: '1000131',
      corpId: 'wwc772567c2e67e02b',
      ...data,
    },
  });
}
